package com.kgc.dao;

import com.kgc.entity.Major;
import com.kgc.entity.MajorExample;
import com.kgc.entity.TreeNode;
import com.kgc.entity.TreeResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MajorMapper {
    long countByExample(MajorExample example);

    int deleteByExample(MajorExample example);

    int deleteByPrimaryKey(Integer mid);

    int insert(Major record);

    int insertSelective(Major record);

    List<Major> selectByExample(MajorExample example);

    Major selectByPrimaryKey(Integer mid);

    int updateByExampleSelective(@Param("record") Major record, @Param("example") MajorExample example);

    int updateByExample(@Param("record") Major record, @Param("example") MajorExample example);

    int updateByPrimaryKeySelective(Major record);

    int updateByPrimaryKey(Major record);
    void deleteMajor(int[] ids);

    List<TreeNode> findDetps();
    List<TreeResult> findTreeResult();
}